package com.lottery.bootdo.common.service.impl;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lottery.bootdo.common.service.MemberInfoService;
import com.lottery.common.contants.ReQueryResult;
import com.lottery.common.dao.MemberInfoMapper;
import com.lottery.common.entity.MemberInfo;
import com.lottery.common.utils.AES;
import com.lottery.common.utils.MD5;
import org.nutz.lang.util.NutMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.UUID;

import static com.lottery.common.contants.Constants.*;
import static com.lottery.common.contants.ReQueryResult.TYPE_ONE_HUNDRED_SEVEN_STR;

/**
 * <p>
 * 会员信息表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-09-23
 */
@Service
public class MemberInfoServiceImpl extends ServiceImpl<MemberInfoMapper, MemberInfo> implements MemberInfoService {

    @Resource
    private MemberInfoMapper mim;

    @Override
    public Integer saveAndCheck(MemberInfo memberInfo) {
        return mim.saveAndCheck(memberInfo);
    }

    @Override
    public IPage<MemberInfo> getMemberList(Page page, NutMap nutMap) {
        return mim.getMemberList(page,nutMap);
    }

}
